
<div class="alert alert-success">基本设置</div>
	<table class=''>
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">商品名称</label></td>
						<td style="padding-right: 20%;">
							<input id="exampleInputEmail1" class="form-control" type="text" value="<?php echo $olddata[0]['gname']?>" name="gname">
						</td>
		</tr>
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">货号</label></td>
						<td style="padding-right: 20%;">
							<input id="exampleInputEmail1" class="form-control" type="text" placeholder="为空时随机生成10位" name="gnum">
						</td>
		</tr>
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">单位</label></td>
						<td style="padding-right: 20%;">
							<input id="exampleInputEmail1" class="form-control" type="text" value="件" name="gunit">
						</td>
		</tr>
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">市场价</label></td>
						<td style="padding-right: 20%;">
							<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入市场价" name="gmarketprice">
						</td>
		</tr>
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">商城价</label></td>
						<td style="padding-right: 20%;">
							<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入商城价" name="gshopprice">
						</td>
		</tr>
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">总库存</label></td>
						<td style="padding-right: 20%;">
							<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入总库存" name="gcount">								
						</td>
		</tr>
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">点击量</label></td>
						<td style="padding-right: 20%;">
							<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入点击量" name="gclick">
						</td>
		</tr>
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">所属分类</label></td>
						<td style="padding-right: 50%;">
							<select name="category_cid" class="form-control">
								<option value="">请选择</option>
								<?php foreach (Data::tree(Db::table('category')->get(),'cname') as $v2){?>
									<option value="<?php echo $v2['cid']?>" tid="<?php echo $v2['type_tid']?>"><?php echo $v2['_name']?></option>
								<?php }?>
							</select>
						</td>
		</tr>
		
		<tr class="info">
						<td><label style="float: right;padding-right: 10%;" for="exampleInputEmail1">所属品牌</label></td>
						<td style="padding-right: 50%;">
							<!--载入品牌-->
							<select name="brand_bid" class="form-control">
								<option value="">请选择</option>	
								<?php foreach (Db::table('brand')->get() as $v){?>
									<option value="<?php echo $v['bid']?>"><?php echo $v['bname']?></option>
								<?php }?>
							</select>
						</td>
		</tr>
	</table>
